//
//  WZXscViewController.swift
//  iiatn
//
//  Created by mine on 2018/7/10.
//  Copyright © 2018年 mnine. All rights reserved.
//

import UIKit

class WZXscViewController: WCZixunViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // 获取首页数据
        weak var weakSelf = self
        WNetwork.shareNetworkTool.loadMSCZixun(user_id: wuserid!) { (mzixuns) in
            weakSelf!.items = mzixuns
            weakSelf!.tableView!.reloadData()
        }
    }
    
    override func loadData() {
        // 获取首页数据
        weak var weakSelf = self
        WNetwork.shareNetworkTool.loadMSCZixun(user_id: wuserid!) { (mzixuns) in
            weakSelf!.items = mzixuns
            weakSelf!.tableView!.reloadData()
            weakSelf!.refreshControl?.endRefreshing()
        }
    }

}
